package net.gzw1993.runmate.widget;

import android.annotation.TargetApi;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.os.Build;
import android.util.AttributeSet;
import android.view.View;

/**
 * Created by Administrator on 15-8-18.
 */
public class VSeparatorLines extends View{
    private Paint paint = new Paint();

    public VSeparatorLines(Context context) {
        super(context);
    }

    public VSeparatorLines(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public VSeparatorLines(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @TargetApi(Build.VERSION_CODES.LOLLIPOP)
    public VSeparatorLines(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
        super(context, attrs, defStyleAttr, defStyleRes);
    }

    @Override
    protected void onDraw(Canvas canvas) {
        super.onDraw(canvas);
        canvas.drawLine(0,0,0,300,paint);
    }
}
